﻿using Digitalmes.Application.Configuration;
using Digitalmes.Application.Mes;
using Microsoft.Extensions.Configuration;

namespace Digitalmes.Application;

public static class ServiceCollectionExtensions
{
    /// <summary>
    /// 注册应用程序应用服务。
    /// </summary>
    /// <param name="services"></param>
    public static IServiceCollection AddApplication(this IServiceCollection services, IConfiguration configuration)
    {
        services.Configure<ApplicationConfig>(configuration.GetSection("Application"));

        services.AddScoped<IEquipAlarmItemQueryService, EquipAlarmItemQueryService>();

        return services;
    }
}
